home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / pc / eindex.dir / 00706_Script_aIndexManager < prev    next >
Text File  |  1995-09-06  |  5KB  |  140 lines

  1. --òò╩aIndexManager
  2. property pTopicMenu , pLatchedAlpha
  3. on birth me 
  4.   return me
  5. end
  6.  
  7. on testIndexRollover me
  8.   --set the trace = true
  9.   set thisAlpha =  the mouseCast
  10.   if (thisAlpha > 0 and thisAlpha < 27) then 
  11.     set thisAlphaIndex = getAt(pTopicMenu,thisAlpha)
  12.     setTopicMenu(thisAlphaIndex)
  13.     clearRefLinkIcon(thisAlphaIndex)
  14.   else
  15.     if (objectP(pLatchedAlpha) ) then
  16.       --òò because the art department could not generate the
  17.       --òò the highlight art fro the topic menu we need to
  18.       --disable the highlight fucnctionality (commented out below)
  19.       --if (rollover(2)) then
  20.       -- secondaryHilight (sub-menu)
  21.       -- set vOffset = the mouseV
  22.       --  setTopicHiLight(pLatchedAlpha , vOffset)
  23.       -- else
  24.       -- revert to latched topic menu
  25.       setTopicMenu(pLatchedAlpha) 
  26.       -- end if 
  27.     end if
  28.   end if
  29. end
  30.  
  31. on resetIndex me
  32.   reset(pLatchedAlpha)
  33. end
  34.  
  35. on clickAlpha me
  36.   set thisAlpha = the mouseCast
  37.   if  (thisAlpha >= 1 and thisAlpha <= 26) then
  38.     set pLatchedAlpha = getAt(pTopicMenu,thisAlpha)
  39.     clearRefLinkIcon(pLatchedAlpha)
  40.   end if
  41. end
  42.  
  43. on clickTopic me 
  44.   set vOffset = the mouseV
  45.   selectTopicFromMenu(pLatchedAlpha,vOffset)
  46. end
  47.  
  48. on clickRefLink me , horzPos,vertPos
  49.   set vOffset = vertPos --the mouseV
  50.   clickRefLink(pLatchedAlpha,vOffset ,horzPos,vertPos)
  51. end
  52.  
  53. on initIndex me
  54.   set pTopicMenu = []
  55.   set indexCount = 1
  56.   set topicObjectClass = the number of cast "aTopicMenu"
  57.   
  58.   --òò A Topic Menu  
  59.   set thisMenu = (birth (script topicObjectClass, 1001 , 1001 , 2 , 1000 , 41 , 1024,  12,0))
  60.   append pTopicMenu, thisMenu
  61.   set pLatchedAlpha =  thisMenu
  62.   --òò B
  63.   set thisMenu =  (birth (script topicObjectClass, 1002 , 1002 , 2 , 1000 , 41 ,1046,  12,0))
  64.   append pTopicMenu, thisMenu
  65.   --òò C
  66.   set thisMenu =  (birth (script topicObjectClass, 1003 , 1003 , 2 , 1000 , 41 ,1068,  10,9))
  67.   append pTopicMenu, thisMenu
  68.   --òò D
  69.   set thisMenu =  (birth (script topicObjectClass, 1004 , 1004 , 2 , 1000 , 41 ,1090,  10,0))
  70.   append pTopicMenu, thisMenu
  71.   --òò E
  72.   set thisMenu =  (birth (script topicObjectClass, 1005 , 1005 , 2 , 1000 , 41 ,1101,  6,0))
  73.   append pTopicMenu, thisMenu
  74.   --òò F
  75.   set thisMenu =  (birth (script topicObjectClass, 1006 , 1006 , 2 , 1000 , 41 ,1112,  12,0))
  76.   append pTopicMenu, thisMenu
  77.   --òò G
  78.   set thisMenu =  (birth (script topicObjectClass, 1007 , 1007 , 2 , 1000 , 41 ,1134,  13,0))
  79.   append pTopicMenu, thisMenu
  80.   --òò H
  81.   set thisMenu =  (birth (script topicObjectClass, 1008 , 1008 , 2 , 1000 , 41 ,1156,  11, 0))
  82.   append pTopicMenu, thisMenu
  83.   --òò I
  84.   set thisMenu =  (birth (script topicObjectClass, 1009 , 1009 , 2 , 1000 , 41 ,1178,  5, 0))
  85.   append pTopicMenu, thisMenu
  86.   --òò J
  87.   set thisMenu =  (birth (script topicObjectClass, 1010 , 1010 , 2 , 1000 , 41 ,1189,  1, 0))
  88.   append pTopicMenu, thisMenu
  89.   --òò K
  90.   set thisMenu =  (birth (script topicObjectClass, 1011 , 1011 , 2 , 1000 , 41 ,1200,  2, 0))
  91.   append pTopicMenu, thisMenu
  92.   --òò L
  93.   set thisMenu = (birth (script topicObjectClass, 1012 , 1012 , 2 , 1000 , 41 ,1211,  6, 0))
  94.   append pTopicMenu, thisMenu
  95.   --òò M
  96.   set thisMenu =  (birth (script topicObjectClass, 1013 , 1013 , 2 , 1000 , 41 ,1222,  8, 8))
  97.   append pTopicMenu, thisMenu
  98.   --òò N
  99.   set thisMenu =  (birth (script topicObjectClass, 1014 , 1014 , 2 , 1000 , 41 ,1244,  7, 0))
  100.   append pTopicMenu, thisMenu
  101.   --òò O
  102.   set thisMenu =  (birth (script topicObjectClass, 1015 , 1015 , 2 , 1000 , 41 ,1255,  5, 0))
  103.   append pTopicMenu, thisMenu
  104.   --òò P
  105.   set thisMenu = (birth (script topicObjectClass, 1016 , 1016 , 2 , 1000 , 41 ,1266,  11, 10))
  106.   append pTopicMenu, thisMenu
  107.   --òò Q
  108.   set thisMenu =  (birth (script topicObjectClass, 0 , 0 , 0 , 1000 , 41 ,45,  4, 0))
  109.   append pTopicMenu, thisMenu
  110.   --òò R
  111.   set thisMenu =  (birth (script topicObjectClass, 1017 , 1017 , 2 , 1000 , 41 ,1288,  5, 0))
  112.   append pTopicMenu, thisMenu
  113.   --òò S
  114.   set thisMenu =  (birth (script topicObjectClass, 1018 , 1018 , 2 , 1000 , 41 ,1299,  12, 11))
  115.   append pTopicMenu, thisMenu
  116.   --òò T
  117.   set thisMenu =  (birth (script topicObjectClass, 1019 , 1019 , 2 , 1000 , 41 ,1332,  14, 0))
  118.   append pTopicMenu, thisMenu
  119.   --òò U
  120.   set thisMenu =  (birth (script topicObjectClass, 0 , 0 , 0 , 1000 , 41 ,45,  0,0))
  121.   append pTopicMenu, thisMenu
  122.   --òò V
  123.   set thisMenu =  (birth (script topicObjectClass, 1020 , 1020 , 2 , 1000 , 41 ,1354,  2,0))
  124.   append pTopicMenu, thisMenu
  125.   --òò W
  126.   set thisMenu =  (birth (script topicObjectClass, 1021 , 1021 , 2 , 1000 , 41 ,1365,  11,0))
  127.   append pTopicMenu, thisMenu
  128.   --òò X
  129.   set thisMenu =  (birth (script topicObjectClass, 1022 , 1022 , 2 , 1000 , 41 ,1387,  1,0))
  130.   append pTopicMenu, thisMenu
  131.   --òò Y
  132.   set thisMenu =  (birth (script topicObjectClass, 0 , 0 , 0 , 1000 , 41 ,479,  0,0))
  133.   append pTopicMenu, thisMenu
  134.   --òò Z
  135.   set thisMenu =  (birth (script topicObjectClass, 0 , 0 , 0 , 1000 , 41 ,45,  0,0))
  136.   append pTopicMenu, thisMenu
  137. end
  138.  
  139.  
  140.